package com.kerrykidz.membership.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.kerrykidz.membership.dao.model.CusMemClassEntity;
import com.rdp.framework.core.dao.mapper.MyBatisSuperMapper;
import com.rdp.framework.exception.RDPException;

@Repository
public interface CusMemClassEntityMapper extends MyBatisSuperMapper<CusMemClassEntity> {
	
	/**
	 * 课程签到查询
	 * 
	 * @param 
	 *            
	 * @return
	 * @throws RDPException
	 */
	
	public List<CusMemClassEntity> findClassDetail(CusMemClassEntity entity) throws RDPException;
	
	/**
	 * 学生姓名，课程下拉框
	 * 
	 * @param 
	 *            
	 * @return
	 * @throws RDPException
	 */
	public List<CusMemClassEntity> select(@Param("fkBranId") String fkBranId) throws RDPException;
	
	/**
	 * 兄弟姐妹的购课历史
	 * @return
	 * @throws RDPException
	 */
	public List<CusMemClassEntity> findAllMemClass(@Param("fkBranId") String fkBranId, @Param("memberIdList") List<String> memberIdList) throws RDPException;
	
	/**
	 * 课程签到导出
	 * @param courseId
	 * @param branId
	 * @return
	 * @throws RDPException
	 * @date: 2014年11月18日
	 */
	public List<CusMemClassEntity> findMemByCourse(@Param("courseId") String courseId,@Param("branId") String branId)throws RDPException;
}
